using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;

public partial class app_frame_Default2 : System.Web.UI.Page
{
    protected void Page_PreInit(object sender, EventArgs e)
    {

        try
        {
            //if (File.Exists(Server.MapPath(".") + @"\App_Themes\" + Session["Theme"].ToString()))
            //    this.Theme = Session["Theme"].ToString();
            //else
            //    this.Theme = GlobalValues.DefaultTheme;
            this.Theme = Session["Theme"].ToString();
            //this.Theme = GlobalValues.DefaultTheme;
        }
        catch (Exception ee)
        {
            this.Theme = GlobalValues.DefaultTheme;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "MaxBlox";
        security hdds = new security();
        string sRedirect = hdds.setSessionExpiryURL();

        if (sRedirect != "") Response.Redirect(sRedirect);
    }
}
